import request from '@/utils/request'

// 查询流程模型草稿箱列表
export function listDraft(query) {
  return request({
    url: '/workflow/flowable/draft/list',
    method: 'get',
    params: query
  })
}

// 查询流程模型草稿箱详细
export function getDraft(id) {
  return request({
    url: '/workflow/flowable/draft/' + id,
    method: 'get'
  })
}

// 新增流程模型草稿箱
export function addDraft(data) {
  return request({
    url: '/workflow/flowable/draft',
    method: 'post',
    data: data
  })
}

// 修改流程模型草稿箱
export function updateDraft(data) {
  return request({
    url: '/workflow/flowable/draft',
    method: 'put',
    data: data
  })
}

// 删除流程模型草稿箱
export function delDraft(id) {
  return request({
    url: '/workflow/flowable/draft/' + id,
    method: 'delete'
  })
}
